package ms.unicorn.erml.edit.parts;

import ms.unicorn.erml.ERML;
import ms.unicorn.erml.edit.policies.ResizableCompartmentEditPolicyEx;
import ms.unicorn.modellanguage.LanguageEntity;

import org.eclipse.gef.EditPolicy;
import org.eclipse.gmf.runtime.notation.View;

public class SubPartCompartmentEditPart extends ContainerEntityCompartmentEditPart {

	public SubPartCompartmentEditPart(View view) {
		super(view);
	}

	@Override
	protected LanguageEntity getContainerLanguageEntity() {
		return ERML.SubPart;
	} 

	@Override
	protected void createDefaultEditPolicies() {
		// TODO Auto-generated method stub
		super.createDefaultEditPolicies();
		removeEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
		installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE,
				new ResizableCompartmentEditPolicyEx());
	}
}
